#ifndef PLAYERCONTROLLER_H
#define PLAYERCONTROLLER_H

#include<QAction>
#include<QDockWidget>
#include<QHBoxLayout>
#include<QIcon>
#include<QPushButton>
#include<QWidget>
//#include<phonon/SeekSlider>
//#include<phonon/VolumeSlider>

class Player;

class PlayerController: public QWidget{
Q_OBJECT
public:
	PlayerController(QWidget *parent, Player *player);
	~PlayerController();
	
	QDockWidget *volumeDock()const{ return m_volumeDock; }
	
	void addActions(QAction *prev, QAction *playPause, QAction *next, QAction *stop);
private slots:
	void slotVolumeButtonToggled(bool toggled);
	void slotActionPlayPauseChanged();
	void slotActionStopChanged();
private:
	QHBoxLayout *m_layout;
	Player *m_player;//TODO is this necessary?
	
	QPushButton *m_buttonPrev;
	QPushButton *m_buttonPlayPause;
	QPushButton *m_buttonNext;
	QPushButton *m_buttonStop;
	//Phonon::SeekSlider *m_slider;
	//Phonon::VolumeSlider *m_volumeSlider;
	QDockWidget *m_volumeDock;
	QPushButton *m_volumeButton;
	
	QAction *m_actionPrev;
	QAction *m_actionPlayPause;
	QAction *m_actionNext;
	QAction *m_actionStop;
};

#endif
